package com.kehutong.wxapi.response;

import org.coraframework.json.annotation.JSONField;

import java.util.List;

/**
 * 企业和第三方应用可通过该接口获取企业发表的朋友圈成员执行情况响应对象
 * @author: liukunlong
 * @date: 2021-03-05 10:27
 */
public class GetMomentTaskResponse {

    /**
     * errcode
     */ /**
     * errcode : 0
     * errmsg : ok
     * next_cursor : CURSOR
     * task_list : [{"userid":"zhangsan","publish_status":1}]
     */

    @JSONField(name = "errcode")
    private Integer errcode;
    /**
     * errmsg
     */
    @JSONField(name = "errmsg")
    private String errmsg;
    /**
     * nextCursor
     */
    @JSONField(name = "next_cursor")
    private String nextCursor;
    /**
     * taskList
     */
    @JSONField(name = "task_list")
    private List<TaskListDTO> taskList;

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public String getNextCursor() {
        return nextCursor;
    }

    public void setNextCursor(String nextCursor) {
        this.nextCursor = nextCursor;
    }

    public List<TaskListDTO> getTaskList() {
        return taskList;
    }

    public void setTaskList(List<TaskListDTO> taskList) {
        this.taskList = taskList;
    }

    public static class TaskListDTO {
        /**
         * userid
         */ /**
         * userid : zhangsan
         * publish_status : 1
         */

        @JSONField(name = "userid")
        private String userid;
        /**
         * publishStatus
         */
        @JSONField(name = "publish_status")
        private Integer publishStatus;

        public String getUserid() {
            return userid;
        }

        public void setUserid(String userid) {
            this.userid = userid;
        }

        public Integer getPublishStatus() {
            return publishStatus;
        }

        public void setPublishStatus(Integer publishStatus) {
            this.publishStatus = publishStatus;
        }
    }
}
